package com.study.designmodel.factory;

/**
 * @description: FactoryModel
 * @date: 2021/2/4 0:22
 * @author: hcm
 * @version: 1.0
 */
public class FactoryModel {
    public static void main(String[] args) {
        ShapeFactory shapeFactory = new ShapeFactory();
        Shape c = shapeFactory.getShape("c");
        c.draw();
        Shape r = shapeFactory.getShape("r");
        r.draw();
        Shape s = shapeFactory.getShape("s");
        s.draw();
    }
}
